package com.wxtl.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.wxtl.dao.base.HibernateBaseDao;
import com.wxtl.entity.GCity;
@Repository
public class CityDAO extends HibernateBaseDao {
	/**
	 * 获取城市
	 * @return
	 */
	public List<GCity> queryCityByProvince(int id){
		String hql="from GCity c where c.provinceId=?";
		List<GCity> list= getHibernateTemplate().find(hql,new Object[]{id});
		return list;
	}
}
